;(function($, window, document, undefined) {
    //
    $(function() {
        if (gItbGifSrc && gItbGifSrc.length>15) {
            var img = new Image();
            var rnd_id = "itb_tmp_gif_" + Math.random().toString(36).slice(2);
            window[rnd_id] = img;

            img.onload = img.onerror = function() {
                //window[rnd_id] = null;
                setTimeout(function() {
                    img.src = gItbGifSrc+"&st="+(new Date()).getTime()+"&n=0";
                },10000)
            }

            img.src = gItbGifSrc+"&st="+(new Date()).getTime()+"&n=1";
        }
    });

})(jQuery, window, document);